IF EXISTS (SELECT * FROM sysobjects WHERE type = 'U' AND name = 'BookCategory')
	BEGIN
		DROP  Table BookCategory
	END
GO

CREATE TABLE BookCategory
(
   Id int IDENTITY PRIMARY KEY,
   BookId int NOT NULL REFERENCES Book(Id),
   CategoryId int NOT NULL REFERENCES Category(Id)
)
GO
 